/*
 * @Author: szx
 * @Date: 2023-04-01 15:19:55
 * @LastEditTime: 2023-04-01 15:21:00
 * @Description: 
 * @FilePath: \learn\fullstackopen\part4\controllers\testing.js
 */
const testingRouter = require('express').Router()
const Blog = require('../models/blog')
const User = require('../models/user')

testingRouter.post('/reset', async (request, response) => {
    await Blog.deleteMany({})
    await User.deleteMany({})
    response.status(204).end()
})

module.exports = testingRouter